package com.ccb.sc.common.modules.shopkeeper.convert;

import com.ccb.sc.common.modules.shopkeeper.entity.ShopkeeperGoods;
import com.ccb.sc.common.modules.shopkeeper.entity.ShopkeeperGoodsSpecs;
import com.ccb.sc.common.modules.shopkeeper.vo.ShopkeeperGoodsDetailVo;
import com.ccb.sc.common.modules.shopkeeper.vo.ShopkeeperGoodsSpecsVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author ken
 * @version 1.0
 * @date 2020-09-20
 */
@Mapper
public interface ShopkeeperGoodsConvert {

    ShopkeeperGoodsConvert INSTANCE = Mappers.getMapper(ShopkeeperGoodsConvert.class);

    ShopkeeperGoodsDetailVo entity2DetailVo(ShopkeeperGoods entity);

    List<ShopkeeperGoodsSpecsVo> goodsSpec2VoBatch(List<ShopkeeperGoodsSpecs> specs);

}
